package com.qianfeng.websocket;

import com.qianfeng.Event.DeviceColorEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/14 19:47
 */
@Component
public class DeviceColorWebSocket extends BaseWebSocket{
    @EventListener
    public void onCommand(DeviceColorEvent event){
        sendMessage(event.getDeviceId(),event.getCommand());
    }
    @Override
    public boolean isNeedUpdateStatus() {
        return false;
    }
}
